home *** CD-ROM | disk | FTP | other *** search
- fixtest.doc 1-96
-
-
-
- FIX 5.XX PROOF TEST Page 1 of 1
-
-
- PURPOSE
- -------
- The central algorithm in FIX uses a buffer to find and
- process strings in a continuous input stream of unlimited
- length. The technically inclined user will recognize the
- potential for insidious undetected omission errors under
- these circumstances. The input stream must be processed
- one block or record at a time. But the target string may
- be located anywhere in the input stream, without respect
- to record boundaries. What happens when the target string
- spans two records? If you are processing a delimited
- string, what happens when the string falls at the begin-
- ning or end of the record so that a possibly delimiting
- character falls in an adjacent record? The test data file
- provided here enables the interested user to verify FIX
- performance under these most challenging data conditions.
-
- TEST DESIGN
- -----------
- FIX and the test data file have been designed to assure
- that every possible positional relationship between
- findstring and the inter-record boundary can be tested.
- The FIX processing record size is determined dynamically
- at run time and varies from approximately 12K to 16K
- depending on string sizes and wether the search is case
- sensitive or not. Record size is always an even number
- that, to accommodate testing, can not be factored by 5.
- Test data consists of a continuously repeating test
- pattern that is 5 characters in length. The FIX record
- size together with the granularity of the repeating test
- data guarantee that, over 6 buffer cycles, FIX will have
- processed strings in every possible positional relation-
- ship between the findstring and the inter-record boundary.
- And at least 156 buffer cycles will be required to process
- the 2.5M test file.
-
- Test Data File: TESTDATA.TXT 2,500,001 bytes (1 eof)
- Test Pattern: "ABcd " (not including quote marks)
- Pattern Repetitions: 500,000
-
- TEST EXAMPLE
- ------------
- >fix 'ABcd ' 'ABcdef ' testdata.txt testdat2
- TESTDATA.TXT TESTDAT2 Occurrences replaced: 500,000
-
- >fix 'ef' '' testdat2 testdat3
- TESTDAT2 TESTDAT3 Occurrences replaced: 500,000
-
- >comp testdata.txt testdat3 NovaLogic(TM)
- Comparing TESTDATA.TXT and TESTDAT3 Beaverton, OR
- Files compare OK (503)524-9184
-
-
-
-
-
-
- ::
-